package com.lhkj.iams.wechat.service;


import com.lhkj.iams.wechat.config.mp.bo.WxMpMessageBo;
import me.chanjar.weixin.common.bean.WxJsapiSignature;
import me.chanjar.weixin.common.bean.WxOAuth2UserInfo;
import me.chanjar.weixin.common.error.WxErrorException;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface WxMpAuthService {

    String authorize(String redirectUrl, HttpServletResponse response) throws IOException;

    WxOAuth2UserInfo wxOpenIdByCode(String code, String mpId) throws WxErrorException;

    WxJsapiSignature createJsapiSignature(String mpId, String url) throws WxErrorException;

//    String receiveMessage(WxMpMessageBo messageBo);

    String receiveMessage(WxMpMessageBo wxMpMessageBo);
}
